<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>机票购买</title>
</head>
<body>


<script>

    var time = prompt("输入月份");
    var p = prompt("选择您购买的类型(头等舱、经济舱)");

    if (time >= 5 && time <= 10){
        if (p == "头等舱"){
            console.log("机票价格 2000")
        }else if (p == "经济舱"){
            console.log("机票价格 800")
        }
    }else {
        if (p == "头等舱"){
            console.log("机票价格 800")
        }else if (p == "经济舱"){
            console.log("机票价格 200")
        }
    }





</script>


<script src="script.css"></script>

</body>
</html>